package ModelLayer;



import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * The test class CustomerTest.
 *
 * @author  (your name)
 * @version (a version number or a date)
 */
public class CustomerTest
{
    private ModelLayer.Customer customer1;

    /**
     * Default constructor for test class CustomerTest
     */
    public CustomerTest()
    {
    }

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    @Before
    public void setUp()
    {
        customer1 = new ModelLayer.Customer("TestName", "TestAddress", "TestPhone", "TestMail", "TestID", 0, "TestCvr");
    }

    /**
     * Tears down the test fixture.
     *
     * Called after every test case method.
     */
    @After
    public void tearDown()
    {
    }

    @Test
    public void TestName()
    {
        assertEquals("TestName", customer1.getName());
    }

    @Test
    public void TestAddress()
    {
        assertEquals("TestAddress", customer1.getAddress());
    }

    @Test
    public void TestPhone()
    {
        assertEquals("TestPhone", customer1.getPhone());
    }

    @Test
    public void TestMail()
    {
        assertEquals("TestMail", customer1.getEmail());
    }

    @Test
    public void TestDiscount()
    {
        assertEquals(0, customer1.getDiscount(), 0.1);
    }

    @Test
    public void TestID()
    {
        assertEquals("TestID", customer1.getCustomerID());
    }

    @Test
    public void TestCvr()
    {
        assertEquals("TestCvr", customer1.getCvrNr());
    }
}







